import Func from '@/utils/functions'

const proxy = {
    async userUpdate(params = {}, header = {}) {
        return uni.request({
            url: '/v1/user/update',
            method: 'PUT',
            data: params,
            header
        })
    },
    async userShow(params = {}, header = {}) {
        return uni.request({
            url: '/v1/user/show',
            method: 'GET',
            data: params,
            header
        })
    },
    async appVersionShow(params = {}, header = {}) {
        return uni.request({
            url: '/v1/user/app/version/show',
            method: 'GET',
            data: params,
            header
        })
    }
}

const p = Func.proxyEndpoint(proxy)

export const userUpdate = p.userUpdate
export const userShow = p.userShow
export const appVersionShow = p.appVersionShow